<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich">
	<jsp:directive.page language="java" import="java.util.*" pageEncoding="UTF-8" />
	<ui:composition template="/protected/layout/template.xhtml">
		<head>
			<ui:define name="head">
				<title><h:outputText value="#{backApp.fullTitle}" />Manutenção de Cadastro - Lista de Endereços!</title>
			</ui:define>
		</head>
		<body>
			<ui:define name="body">
				<rich:panel>
					<f:facet name="header">
						<h5 align="center">
							Endereço
						</h5>
					</f:facet>
					<h:form prependId="false">
						<h:panelGrid columns="3">
							<rich:column colspan="1">
								<h:outputLabel for="tfLogradouro" value="Logradouro:" title="Escolha o tipo de logradouro, Rua, Av. Praça..." />
								<br />
								<h:panelGroup>
									<h:selectOneMenu id="ltLogradouro" required="true" rendered="true" value="#{addressManager.addressType}"
										valueChangeListener="#{addressManager.addressTypeSelectListener}">
										<f:selectItems value="#{addressManager.addressTypes}" />
									</h:selectOneMenu>
									<h:message for="tfLogradouro" />
								</h:panelGroup>
							</rich:column>
							<rich:column colspan="1">
								<h:outputLabel for="tfLogradouro" value="Logradouro:" title="Escolha o tipo de logradouro, Rua, Av. Praça..." />
								<br />
								<h:panelGroup>
									<h:inputText readonly="true" size="50" id="tfAddressName" required="true" rendered="true"
										value="#{addressManager.addressName}">
										<h:message for="tfAddressName" />
								</h:panelGroup>
							</rich:column>
						</h:panelGrid>
					</h:form>
				</rich:panel>
			</ui:define>
		</body>
	</ui:composition>
</html>
